Class MyA3LMessagingService

    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.content.BroadcastReceiver

        android.content.BroadcastReceiver.PendingResult
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void createNotification​(android.content.Context context, Notification a3lNotification)  
      void onMessageReceived​(android.content.Context context, RemoteMessage remoteMessage)
      Developer implements this method to receive messages sent from their app server
      void onNewToken​(android.content.Context context, java.lang.String token)
      Developer implements this method to receive device registration id (token) generated by messaging platform e.g ADM or FCM
      • Methods inherited from class android.content.BroadcastReceiver

        abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FALLBACK_NOTIFICATION_CHANNEL

        public static final java.lang.String FALLBACK_NOTIFICATION_CHANNEL
        See Also:
        Constant Field Values
      • FALLBACK_NOTIFICATION_CHANNEL_LABEL

        public static final java.lang.String FALLBACK_NOTIFICATION_CHANNEL_LABEL
        See Also:
        Constant Field Values
    • Constructor Detail

      • MyA3LMessagingService

        public MyA3LMessagingService()
    • Method Detail

      • onMessageReceived

        public void onMessageReceived​(android.content.Context context,
                                      RemoteMessage remoteMessage)
        Description copied from class: A3LMessagingService
        Developer implements this method to receive messages sent from their app server
        Specified by:
        onMessageReceived in class A3LMessagingService
        Parameters:
        context - : Application Context
        remoteMessage - : instance of RemoteMessage
      • onNewToken

        public void onNewToken​(android.content.Context context,
                               java.lang.String token)
        Description copied from class: A3LMessagingService
        Developer implements this method to receive device registration id (token) generated by messaging platform e.g ADM or FCM
        Specified by:
        onNewToken in class A3LMessagingService
        Parameters:
        context - : Application Context
        token - : device registration id (token)
      • createNotification

        public static void createNotification​(android.content.Context context,
                                              Notification a3lNotification)